<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>"/> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {
	color: #43860c;
	font-size: 12px;
}
-->
</style></head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
  <tr>
    <td height="9" style="line-height:9px; background-image:url(images/header/main_04.gif)"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="97" height="9" background="images/header/main_01.gif">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="47" background="images/header/main_09.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="38" height="47" background="images/header/main_06.gif">&nbsp;</td>
        <td width="59"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="29" background="images/header/main_07.gif">&nbsp;</td>
          </tr>
          <tr>
            <td height="18" background="images/header/main_14.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;">
              <tr>
                <td  style="width:1px;">&nbsp;</td>
                <td ><span class="STYLE1">${sessionScope.admin.loginName }</span></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        <td width="155" background="images/header/main_08.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="23" valign="bottom"><img src="images/header/main_12.gif" width="367" height="23" border="0" usemap="#Map" /></td>
          </tr>
        </table></td>
        <td width="200" background="images/header/main_11.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="11%" height="23">&nbsp;</td>
            <td width="89%" valign="bottom"><span class="STYLE1" id="logtime"></span></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="5" style="line-height:5px; background-image:url(images/header/main_18.gif)"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="180" background="images/header/main_16.gif"  style="line-height:5px;">&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
<map name="Map" id="Map"><area shape="rect" coords="3,1,49,22" href="javascript:void(0);" /><area shape="rect" coords="52,2,95,21" href="javascript:void(0);" /><area shape="rect" coords="102,2,144,21" href="javascript:void(0);" /><area shape="rect" coords="150,1,197,22" href="javascript:void(0);"/><area shape="rect" coords="210,2,304,20" href="javascript:void(0);" /><area shape="rect" coords="314,1,361,23" href="javascript:void(0);" onclick="logout();"/></map></body>
</body>
<script type="text/javascript">
   function getWelcomeByTime(){
  	 var now = new Date();
  	 var hours = now.getHours();
  	 var timeValue = (hours >= 12) ? "下午好" : "上午好";
  	 return timeValue;
   }   
   function getTodayDate(){  
	   var now = new Date();  
	   var yy = now.getFullYear();
	   var mm = now.getMonth()+1; 
	   var dd=now.getDate();
	   var day = new Array();  
	   day[0] = "星期日";  
	   day[1] = "星期一";  
	   day[2] = "星期二";  
	   day[3] = "星期三";  
	   day[4] = "星期四";  
	   day[5] = "星期五";  
	   day[6] = "星期六";				
	   return( yy + '年' + mm + '月'+ dd +'日&nbsp;'+day[now.getDay()]);  
  } 
  window.onload = function(){
     //document.getElementById("wenhou").innerHTML=getWelcomeByTime();
     document.getElementById("logtime").innerHTML=""+getTodayDate();     
  }

function logout(){
	if(confirm("确定要退出本平台吗？")){
		window.parent.location="../login.jsp";
		 }  
}
</script>
</html>
